'use strict'

import './styles/base.scss'
import 'babel-polyfill'
import { render } from 'react-dom'
import React from 'react'
import { Router, Route, IndexRedirect, hashHistory } from 'react-router'
import App from './components/App'
import uisample from './modules/ui'
import antdsample from './modules/antd'

const router = (
    <Router history={hashHistory}>
        <Route path="/" component={App}>
            <IndexRedirect to="antd"/>
            <Route path="antd">
                {antdsample.route}
            </Route>
        </Route>
    </Router>
)

render(router, document.getElementById('app'))